<%@ page language="java" import="java.util.*" pageEncoding="UTF-8" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%
    String path = request.getContextPath();
    String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort() + path + "/";
%>

<!DOCTYPE html>
<html lang="en">
<head>
    <base href="<%=basePath%>">
    <meta charset="utf-8">
    <title>订牛奶管理系统</title>
    <meta content="IE=edge,chrome=1" http-equiv="X-UA-Compatible">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="description" content="">
    <meta name="author" content="">

    <link rel="stylesheet" href="/static/lib/bootstrap5.0.0/css/bootstrap.min.css">

    <link rel="stylesheet" type="text/css" href="/static/stylesheets/theme.css">
    <link rel="stylesheet" href="/static/lib/font-awesome/css/font-awesome.css">
    <script src="/static/lib/chosenConfigure/docsupport/jquery-3.2.1.min.js" type="text/javascript"></script>
    <link rel="stylesheet" href="/static/lib/chosenConfigure/chosen.css">
    <script src="/static/js/cake/cakeAdd.js" type="text/javascript"></script>

    <!-- Demo page code -->

    <style type="text/css">
        #line-chart {
            height: 300px;
            width: 800px;
            margin: 0px auto;
            margin-top: 1em;
        }

        .brand {
            font-family: georgia, serif;
        }

        .brand .first {
            color: #ccc;
            font-style: italic;
        }

        .brand .second {
            color: #fff;
            font-weight: bold;
        }
    </style>

    <!-- Le HTML5 shim, for IE6-8 support of HTML5 elements -->
    <!--[if lt IE 9]>
    <script src="/static/lib/html5.js"></script>
    <![endif]-->

    <!-- Le fav and touch icons -->
    <link rel="shortcut icon" href="../assets/ico/favicon.ico">
    <link rel="apple-touch-icon-precomposed" sizes="144x144" href="../assets/ico/apple-touch-icon-144-precomposed.png">
    <link rel="apple-touch-icon-precomposed" sizes="114x114" href="../assets/ico/apple-touch-icon-114-precomposed.png">
    <link rel="apple-touch-icon-precomposed" sizes="72x72" href="../assets/ico/apple-touch-icon-72-precomposed.png">
    <link rel="apple-touch-icon-precomposed" href="../assets/ico/apple-touch-icon-57-precomposed.png">

    <script language="javascript" type="text/javascript">

        function checkform() {


            if (document.getElementById("nameid").value == "") {
                alert('商品名不能为空');
                return false;
            }


            if (document.getElementById("priceid").value == "") {
                alert('单价不能为空');
                return false;
            }


            var v1 = document.getElementById("priceid").value;


            if (isNaN(v1)) { //数字
                alert('单价必须是数字');
                return false;
            }


            return true;

        }


    </script>


</head>

<!--[if lt IE 7 ]>
<body class="ie ie6"> <![endif]-->
<!--[if IE 7 ]>
<body class="ie ie7 "> <![endif]-->
<!--[if IE 8 ]>
<body class="ie ie8 "> <![endif]-->
<!--[if IE 9 ]>
<body class="ie ie9 "> <![endif]-->
<!--[if (gt IE 9)|!(IE)]><!-->
<body class="">
<!--<![endif]-->

<%@ include file="../top.jsp" %>


<%@ include file="../left.jsp" %>


<div class="content">

    <div class="header">

        <h1 class="page-title">添加</h1>
    </div>


    <div class="container-fluid">
        <div class="row-fluid">

            <div class="well">

                <div id="myTabContent" class="tab-content">
                    <div class="tab-pane active in" id="home">
                        <div class="row">
                            <div class="col-md-6">
                                <span for="name">商品名：</span>
                                <input type="text" name="name" id="name" class="input-xlarge name form-control" value="">
                            </div>
                            <div class="col-md-6">
                                <span for="price">销售单价：</span>
                                <input type="number" name="price" id="price" class="input-xlarge price form-control" value="">
                            </div>
                            <div class="col-md-6">
                                <span for="stock">库存：</span>
                                <input type="number" name="stock" id="stock" class="input-xlarge stock form-control" value="">
                            </div>
                            <div class="col-md-6">
                                <span for="createTime">生产日期：</span>
                                <input type="date" name="createTime" id="createTime" class="form-control input-xlarge createTime"
                                       value="">
                            </div>
                            <div class="col-md-6">
                                <spen for="guarantee">保质期：</spen>
                                <input type="number" name="guarantee" id="guarantee" class="form-control input-xlarge guarantee"
                                       value="">
                            </div>
                            <div class="col-md-6">
                                <spen for="contenta">商品分类：</spen>
                                <select id="contenta" name="contenta" data-placeholder="商品分类"
                                        class="chosen-select contenta form-control" multiple tabindex="4"></select>
                            </div>
                            <div class="col-md-12" style="text-align: center;">
                                <button class='btn btn-primary' onclick="addCake()">提交</button>
                                <input type="button" class='btn btn-primary' value="返回"
                                       onclick="javascript:history.go(-1);"/>
                            </div>
                        </div>
                    </div>

                </div>

            </div>
        </div>
    </div>


    <script src="/static/lib/chosenConfigure/chosen.jquery.js" type="text/javascript"></script>
    <script src="/static/lib/chosenConfigure/docsupport/prism.js" type="text/javascript"
            charset="utf-8"></script>
    <script src="/static/lib/chosenConfigure/docsupport/init.js" type="text/javascript"
            charset="utf-8"></script>
    <script src="/static/lib/bootstrap5.0.0/js/bootstrap.bundle.min.js"></script>
    <script type="text/javascript">
        $("[rel=tooltip]").tooltip();
        $(function () {
            $('.demo-cancel-click').click(function () {
                return false;
            });
        });
    </script>

</body>
</html>



